import request from '@/utils/request'

// 查询库存盘点详情列表
export function listStockTakingDetail(query) {
  return request({
    url: '/store/StockTakingDetail/list',
    method: 'get',
    params: query
  })
}

// 查询库存盘点详情详细
export function getStockTakingDetail(id) {
  return request({
    url: '/store/StockTakingDetail/' + id,
    method: 'get'
  })
}

// 新增库存盘点详情
export function addStockTakingDetail(data) {
  return request({
    url: '/store/StockTakingDetail',
    method: 'post',
    data: data
  })
}

// 修改库存盘点详情
export function updateStockTakingDetail(data) {
  return request({
    url: '/store/StockTakingDetail',
    method: 'put',
    data: data
  })
}

// 删除库存盘点详情
export function delStockTakingDetail(id) {
  return request({
    url: '/store/StockTakingDetail/' + id,
    method: 'delete'
  })
}
